FROM vertx/vertx3

ENV VERTICLE_FILE target/test-docker-fat.jar

ENV VERTICLE_HOME /opt/verticles
ENV VERTX_OPTIONS "-conf local.json"

EXPOSE 9000

COPY $VERTICLE_FILE $VERTICLE_HOME/
COPY conf/local.json $VERTICLE_HOME/

WORKDIR $VERTICLE_HOME
ENTRYPOINT ["sh", "-c"]
CMD ["exec java -jar test-docker-fat.jar $VERTX_OPTIONS"]
